package com.tensquare.search.dao;

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @author Alfred
 * @description TODO
 * @date 2021/4/28 10:16
 */
public interface ArticleSearchDao extends ElasticsearchRepository<Article,String> {

    /**
     * fetch data by rule id
     *
     * @description  检索
     * @param
     * @return
     */
    public Page<Article> findByTitleOrContentLike(String title, String content, Pageable pageable);
}
